package com.yanchangapp.model.request;

import com.yanchangapp.model.bean.ProductBean;

import java.util.List;

/**
 * Created by apple on 2019-08-09.
 * description: 创建订单的请求体
 */
public class CreateOrderRequest {
    // yyyy-mm-dd HH:MM:SS 格式  当前时间....
    private String orderDate;
    // 制单部门ID
    private int departmentId;
    // 合同ID 非必填项目 *******************
    private String contractId;
    // 采购员ID  ==>  employeeId
    private int buyerId;
    // 采购员姓名
    private String buyerName;
    // 供货单位Id
    private String supplierId;
    // 仓库ID
    private String storeRoom;
    // 总价
    private double totalMoney;
    // 商品列表
    private List<ProductBean> products;


    public CreateOrderRequest(String orderDate, int departmentId, String contractId, int buyerId, String buyerName, String supplierId, String storeRoom, double totalMoney, List<ProductBean> products) {
        this.orderDate = orderDate;
        this.departmentId = departmentId;
        this.contractId = contractId;
        this.buyerId = buyerId;
        this.buyerName = buyerName;
        this.supplierId = supplierId;
        this.storeRoom = storeRoom;
        this.totalMoney = totalMoney;
        this.products = products;
    }

    public CreateOrderRequest(String orderDate, int departmentId, int buyerId, String buyerName, String supplierId, String storeRoom, double totalMoney, List<ProductBean> products) {
        this.orderDate = orderDate;
        this.departmentId = departmentId;
        this.buyerId = buyerId;
        this.buyerName = buyerName;
        this.supplierId = supplierId;
        this.storeRoom = storeRoom;
        this.totalMoney = totalMoney;
        this.products = products;
    }

    public String getOrderDate() {
        return orderDate;
    }

    public void setOrderDate(String orderDate) {
        this.orderDate = orderDate;
    }

    public int getDepartmentId() {
        return departmentId;
    }

    public void setDepartmentId(int departmentId) {
        this.departmentId = departmentId;
    }

    public String getContractId() {
        return contractId;
    }

    public void setContractId(String contractId) {
        this.contractId = contractId;
    }

    public int getBuyerId() {
        return buyerId;
    }

    public void setBuyerId(int buyerId) {
        this.buyerId = buyerId;
    }

    public String getBuyerName() {
        return buyerName;
    }

    public void setBuyerName(String buyerName) {
        this.buyerName = buyerName;
    }

    public String getSupplierId() {
        return supplierId;
    }

    public void setSupplierId(String supplierId) {
        this.supplierId = supplierId;
    }

    public String getStoreRoom() {
        return storeRoom;
    }

    public void setStoreRoom(String storeRoom) {
        this.storeRoom = storeRoom;
    }

    public double getTotalMoney() {
        return totalMoney;
    }

    public void setTotalMoney(double totalMoney) {
        this.totalMoney = totalMoney;
    }

    public List<ProductBean> getProducts() {
        return products;
    }

    public void setProducts(List<ProductBean> products) {
        this.products = products;
    }
}
